﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using LeHouse.Server.Dto;
using LeHouse.Server.Service;

namespace LeHouse.Server.WebApi.Controllers
{
    public class proposalController : ApiController
    {
        /// <summary>
        /// 显示询价表信息
        /// </summary>
        /// <param name="pro"></param>
        /// <returns></returns>
        [HttpPost]
        [Route("api/proposal/Select")]
        public List<System_Dictionary> Select()
        {
            //proposalservice select = new proposalservice();
            //List<System_Dictionary> pro = select.Select();
            return null;//pro;
        }

        /// <summary>
        /// 根据编号获取询价表的信息
        /// </summary>
        /// <param name="id">根据选中的ID显示信息</param>
        /// <returns>false/true</returns>
        [HttpPost]
        [Route("api/InquiryRecord/UpdateByid")]
        public bool selectByid([FromBody] int id)
        {
            //proposalservice selectbyid = new proposalservice();
            //if (selectbyid.SelectById(id) != null)
            //{
            //    return true;
            //}
            //else
            //{
            //    return false;
            //}
            return false;
        }
    }
}
